Which world the player is in: 0 for the first world in your list, 1 for the second, and so on; -1 in a room that is not part of a world. Every place the game reads or writes is a place in this world.
world_current() -> intint
Which world the player is in: 0 for the first world in your list, 1 for the second, and so on. In a room that is not part of a world (a house, a cave you drew as an ordinary room) the answer is -1.
Every place the game reads or writes (x, camera_x, tile_solid and the rest) is a place in this world.
if (world_current() == 1) {
draw_text(8, 8, "The Underworld");
}A title that shows only in the second world.